package com.demo2do.boyle.common.entity.system.tag;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author Wilson
 */
@Alias("tagType")
public enum Type {
	
	OTHER("其他标签", "other"),  	//冗余标签，为了适配PHP type从1开始

	LIFE("生活标签", "lifeTag"),
	
	INTEREST("兴趣爱好", "interestTag"),
	
    AGE("年龄标签", "age"),
	
    SEX("性别标签", "sex"),
	
	GEO("地域标签", "area");
	
    private String description;
    
    private String columnName;

    Type(String description, String columnName) {
        this.description = description;
        this.columnName = columnName;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }
    
    public String getColumnName() {
    	return columnName;
    }
    
    public String getName() {
        return name();
    }
    
    /*
     * (non-Javadoc)
     * @see java.lang.Enum#toString()
     */
    @Override
    public String toString() {
        return description;
    }

}
